<?php if((isset($_SESSION['sys_admin']))) {?>
<div class="update-prod ">
<div class="update-prod-atas"></div>
<div class="update-prod-tengah ">

<?php 
	echo ! empty($h2_title) ? '<h2>' . $h2_title . '</h2>': '';
	echo ! empty($message) ? '<p class="message">' . $message . '</p>': '';

	$flashmessage = $this->session->flashdata('message');
	echo ! empty($flashmessage) ? '<p class="message">' . $flashmessage . '</p>': '';
?>
<?php
	if ( ! empty($link))
	{
		echo '<p id="bottom_link">';
		foreach($link as $links)
		{
			echo $links . ' ';
		}
		echo '</p>';
	}
?>

<form name="berita_form" method="post" action="<?php echo $form_action; ?>"  >
	<p>
		<label for="idberita">Prod ID:</label>
		<input type="text" class="form_field" name="prod_id" size="30" value="<?php echo set_value('prod_id', isset($default['prod_id']) ? $default['prod_id'] : ''); ?>" />&nbsp;(<i>Automatic</i>)
	</p>
	<?php echo form_error('prod_id', '<p class="field_error">', '</p>');?>
	
	<p>
		<label for="tanggal">Product :</label>
		<input type="text" class="form_field" name="product" size="30" value="<?php echo set_value('product', isset($default['product']) ? $default['product'] : ''); ?>" />
		
	</p>
	<?php echo form_error('product', '<p class="field_error">', '</p>');?>	

	<p>
		<label for="judul">Name :</label>
		<input type="text" class="form_field" name="name" size="30" value="<?php echo set_value('name', isset($default['name']) ? $default['name'] : ''); ?>" />
		
	</p>
	<?php echo form_error('name', '<p class="field_error">', '</p>');?>
	<p>
		<label for="isi">Descr:</label>
		<textarea cols="50" rows="20" name="descr" class="tinymce"><?php echo set_value('descr', isset($default['descr']) ? $default['descr'] : ''); ?></textarea>
		
	</p>
	<?php echo form_error('descr', '<p class="field_error">', '</p>');?>
    <p>
		<label for="isi">Detail 1:</label>
		<textarea cols="50" rows="20" name="detail_1" class="tinymce"><?php echo set_value('detail_1', isset($default['detail_1']) ? $default['detail_1'] : ''); ?><?php echo ! empty($detail_1)? ''.$detail_1.'':'';?></textarea>
		
	</p>
	<?php echo form_error('detail_1', '<p class="field_error">', '</p>');?>
    <p>
		<label for="isi">Detail 2:</label>
		<textarea cols="50" rows="20" name="detail_2" class="tinymce"><?php echo set_value('detail_2', isset($default['detail_2']) ? $default['detail_2'] : ''); ?><?php echo ! empty($detail_2)? ''.$detail_2.'':'';?></textarea>
		
	</p>
	<?php echo form_error('detail_2', '<p class="field_error">', '</p>');?>
    <p>
		<label for="isi">Detail 3:</label>
		<textarea cols="50" rows="20" name="detail_3" class="tinymce"><?php echo set_value('detail_3', isset($default['detail_3']) ? $default['detail_3'] : ''); ?><?php echo ! empty($detail_3)? ''.$detail_3.'':'';?></textarea>
		
	</p>
	<?php echo form_error('detail_3', '<p class="field_error">', '</p>');?>	
    <p>
		<label for="isi">Detail 4:</label>
		<textarea cols="50" rows="20" name="detail_4" class="tinymce"><?php echo set_value('detail_4', isset($default['detail_4']) ? $default['detail_4'] : ''); ?><?php echo ! empty($detail_4)? ''.$detail_4.'':'';?></textarea>
		
	</p>
	<?php echo form_error('detail_4', '<p class="field_error">', '</p>');?>
	
    <p>
		<label for="isi">Detail 5:</label>
		<textarea cols="50" rows="20" name="detail_5" class="tinymce"><?php echo set_value('detail_5', isset($default['detail_5']) ? $default['detail_5'] : ''); ?><?php echo ! empty($detail_5)? ''.$detail_5.'':'';?></textarea>
		
	</p>
	<?php echo form_error('detail_5', '<p class="field_error">', '</p>');?>
			

	<p>
		<input type="submit" name="submit" id="submit" value=" Simpan " />
	</p>
</form>
</div>
<div class="update-prod-bawah"></div>
</div>
<?php } ?>